package com.xujiakai.car.maintain.infrastructure.mapper;

import com.xujiakai.car.maintain.domain.dto.SupplierDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SupplierDTO record);

    int insertSelective(SupplierDTO record);

    SupplierDTO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SupplierDTO record);

    int updateByPrimaryKey(SupplierDTO record);
    
    
    List<SupplierDTO> selectAllSupplier(
    		@Param("key") String key,
    		@Param("sort") String sort,
    		@Param("order") String order,
    		@Param("flag") String flag);
}